package clone;

import java.io.Serializable;

public class Teacher implements Cloneable,Serializable {
	private String name;
	private String course;	

	public Teacher(String name, String course) {
		this.name = name;
		this.course = course;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	public Teacher clone() {
		Teacher clone = null;
		try {
			clone = (Teacher) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return clone;
	}

}
